package com.heima.controller;


import com.heima.pojo.vo.TaskReportInfoVo;
import com.heima.service.ITbTaskService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 工单表 前端控制器
 * </p>
 *
 * @author nan
 * @since 2024-06-12
 */
@RestController
@RequestMapping("/api/task-service/task")
public class TbTaskController {

    @Autowired
    private ITbTaskService taskService;

    @GetMapping("/taskReportInfo/{start}/{end}")
    @ApiOperation("工单统计")
    public List<TaskReportInfoVo> taskReportInfo(@PathVariable String start, @PathVariable String end) {

        return taskService.taskReportInfo(start, end);
    }

}
